package top.someapp.dxf2dsvg.base;

import javax.annotation.Nonnegative;

/**
 * @author zwz
 * Created on 2020-04-19
 */
public class Size {
    private float value;

    public Size(@Nonnegative int value) {
        this((float) value);
    }

    public Size(@Nonnegative double value) {
        this((float) value);
    }

    public Size(@Nonnegative float value) {
        this.value = value;
    }

    public float getValue() {
        return value;
    }

    public Size setValue(float value) {
        this.value = value;
        return this;
    }

    @Override
    public String toString() {
        return "Size{" +
                "value=" + value +
                '}';
    }
}
